package chapter02.utils;

public class SinglyListNode<T> {
	private T item;
	private SinglyListNode<T> next;
	public SinglyListNode(T item, SinglyListNode<T> next) {
		super();
		this.item = item;
		this.next = next;
	}
	
	public SinglyListNode(T item) {
		super();
		this.item = item;
	}

	public T getItem() {
		return item;
	}
	public void setItem(T item) {
		this.item = item;
	}
	public SinglyListNode<T> getNext() {
		return next;
	}
	public void setNext(SinglyListNode<T> next) {
		this.next = next;
	}
	
}
